import Vue from 'vue'
import VueRouter from 'vue-router'


// import ShowView from '../components/blog/ShowView.vue'
// import AddBlog from '../components/blog/AddBlog.vue'

// 懒加载
const ShowView = () => import("../components/blog/ShowView")
const AddBlog = () => import("../components/blog/AddBlog")
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: ShowView
  },
  {
    path:"/show",
    component:ShowView
  },
  {
    path:"/add",
    component:AddBlog
  }
  
]

const router = new VueRouter({
  routes
})

export default router
